package com.virus.mall.service;

import com.virus.mall.model.Reply;
import com.virus.mall.model.Type;
import com.virus.mall.model.bo.*;
import com.virus.mall.model.vo.*;

import java.util.List;

/**
 * @Classname GoodsService
 * @Description 商品模块业务层逻辑
 * @Date 2021/4/16 22:49
 * @Created by virus
 */
public interface GoodsService {
    List<Type> getType();

    List<GoodsGetByTypeVo> getGoodsByType(Integer typeId);

    boolean addGoods(AddGoodsBo addGoodsBo);

    boolean deleteGoods(Integer parseInt);

    boolean addType(AddTypeBo addTypeBo);

    boolean deleteType(Integer typeId);

    GoodsGetInfoVo getGoodsInfo(Integer parseInt);

    AddSpecVo addSpec(AddSpecBo addSpecBo);

    boolean deleteSpec(SpecDeleteBo specDeleteBo);

    boolean updateGoods(GoodsUpdateBo goodsUpdateBo);

    List<Reply> noReplyMsg();

    List<Reply> repliedMsg();

    boolean reply(ReplyBo replyBo);

    GoodsGetInfoMallVo getMallGoodsInfo(Integer id);

    List<GetGoodsMsgVo> getGoodsMsg(Integer id);

    boolean askGoodsMsg(AskGoodsMsgBo askGoodsMsgBo);

    List<SearchGoodsVo> searchGoods(String keyword);

    GetGoodsCommentVo getGoodsComment(Integer goodsId);
}
